home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir39 / exc32.zip / EXC.DOC next >
Text File  |  1994-01-18  |  85KB  |  1,945 lines

  1.                                      EXC 
  2.                            The EXeCution Processor
  3.                                  USER'S GUIDE
  4.  
  5.                        Copyright 1993 by Gary C. Crider
  6.                                
  7.  
  8.  
  9. TABLE OF CONTENTS:
  10.  
  11.         What is EXC? ..................................... 1.0
  12.         Requirements ..................................... 1.1
  13.         The EXC command line ............................. 2.0
  14.           Parameters that contain quotes ................. 2.1
  15.         Operational notes ................................ 3.0
  16.           General notes .................................. 3.1
  17.           Interrupt keys ................................. 3.2
  18.           Memory usage ................................... 3.3
  19.           Timing considerations .......................... 3.4
  20.           When EXC may not function or cause problems .... 3.5
  21.           Specific problems .............................. 3.6
  22.             Remote control communications ................ 3.6.1
  23.           Error handling ................................. 3.7
  24.         Scripts .......................................... 4.0
  25.           Script Commands ................................ 4.1
  26.             BEEP ......................................... 4.1.1
  27.             CASE ......................................... 4.1.2
  28.             CLEAR ........................................ 4.1.3
  29.             CURSOR ....................................... 4.1.4
  30.             DELAY ........................................ 4.1.5
  31.             FAST ......................................... 4.1.6
  32.             GOTO ......................................... 4.1.7
  33.             HIDEWIN ...................................... 4.1.8
  34.             IFN .......................................... 4.1.9
  35.             IFY .......................................... 4.1.10
  36.             INT9 ......................................... 4.1.11
  37.             KEY .......................................... 4.1.12
  38.             LOCATE ....................................... 4.1.13
  39.             LOOK ......................................... 4.1.14
  40.             NOINT9 ....................................... 4.1.15
  41.             ON ........................................... 4.1.16
  42.             ONRESET ...................................... 4.1.17
  43.             PAUSE ........................................ 4.1.18
  44.             QUIT ......................................... 4.1.19
  45.             READ ......................................... 4.1.20
  46.             SCRMAX ....................................... 4.1.21
  47.             SEARCH ....................................... 4.1.22
  48.             SET .......................................... 4.1.23
  49.             SETWAIT ...................................... 4.1.24
  50.             SHOW ......................................... 4.1.25
  51.             SHOWAT ....................................... 4.1.26
  52.             SHOWIN ....................................... 4.1.27
  53.             SLOW ......................................... 4.1.28
  54.             TICK ......................................... 4.1.29
  55.             TIME ......................................... 4.1.30
  56.             TIMEOUT ...................................... 4.1.31
  57.             TYPE ......................................... 4.1.32
  58.             TYPFILE ...................................... 4.1.33
  59.             WAITFOR ...................................... 4.1.34
  60.             WAITSCR ...................................... 4.1.35
  61.             WINCOLS ...................................... 4.1.36
  62.             WINMAX ....................................... 4.1.37
  63.             WINROWS ...................................... 4.1.38
  64.           Labels ......................................... 4.2  
  65.           Remarks ........................................ 4.3
  66.           Using variables ................................ 4.4
  67.           Environment variable substitution .............. 4.5
  68.           User variables ................................. 4.6
  69.           Example script ................................. 4.7
  70.         Installation ..................................... Appendix A
  71.         Keycode table .................................... Appendix B
  72.         EXCDEMO .......................................... Appendix C
  73.         Definition of Shareware .......................... Appendix D
  74.         Disclaimer ....................................... Appendix E
  75.         Support .......................................... Appendix F
  76.         Registration ..................................... Appendix G
  77.  
  78.  
  79. 1.0 What Is EXC?
  80.  
  81.    As administrator of a large local area network, I believe whole-
  82. heartedly in automating every task that can be automated.  Even though 
  83. many tasks are computerized, that does not make them automated.  By
  84. automated I mean that you enter one command or batch file name on the
  85. DOS command line and forget about it until the task is performed.  Unfor-
  86. tunately many, if not most, programs require an operator to fill in blanks,
  87. select choices or otherwise interact with the PC to accomplish a task in
  88. which all of these parameters and choices were known to the user beforehand.
  89.  
  90.    I, for one, do not want to have to sit and watch my backups take place.
  91. In fact, I want them done while I am away from the office.  After backups, 
  92. what better time to defragment a hard disk?  Do I want to have to chase menus 
  93. to achieve this after the backup completes?  One of the worst offenders of 
  94. this I have seen is Stacker's SDEFRAG program.  You can automate just about 
  95. everything until the defrag has finished, then a stupid dialogue box pops up 
  96. and asks you if you want to exit the program.  No way to just move on back 
  97. to the batch file and begin defragmenting the next drive.
  98.  
  99.    I first experimented with various keyboard stuffers such as PC Magazine's
  100. KEY-FAKE by Charles Petzold and STACKEY by Barry Simon and Richard Wilson.
  101. These programs take pre-programmed key sequences and stuff them into the
  102. keyboard buffer as if you had typed them at the keyboard.  The trouble is
  103. that many programs rudely clear the keyboard buffer before requesting you to 
  104. enter something or they allow you to interrupt the processing by pressing any 
  105. key.  Since you have already simulated pressing the key, oops!.  In either 
  106. case, you can't simply preprogram your reply and go.  Stacker's SDEFRAG exit 
  107. prompt is an example.  
  108.  
  109.    Stuffers usually offer a way to get around this by programming a delay
  110. into the keystrokes that causes so many seconds to elapse before the key
  111. code is stuffed into the keyboard buffer.  This is a help, but what if the
  112. time for a task (backup and defrag, for example) to complete varies greatly
  113. from one execution to another?  You have to program for the longest possible 
  114. execution time and the task then takes way too long to run in most cases.
  115.  
  116.    Another problem I have with stuffers is that they are almost always 
  117. terminate-and-stay-resident (TSR) programs.  I hate to stuff another program
  118. in my 640k when I don't have to.  Although most allow you to unload them,
  119. you will forget more often than not.
  120.  
  121.    I then came across a program called AUTOMATE by Geoff Friesen that was
  122. a better approach.  You built a script, compiled it and executed it.  No
  123. TSR remained in memory.  The trouble is, the only commands in the script
  124. were execute a program, wait, and insert keys in the buffer.  Also, you
  125. couldn't pass parameters to the program.  AUTOMATE served as my inspiration 
  126. to take it further.
  127.  
  128.    What I wanted was a program that had the intelligence to monitor the 
  129. screen and detect when an event occurred that required me to insert more 
  130. keycodes in the buffer.  I would also like to see logical branching in the 
  131. script and the ability to plan for exception processing as well as when 
  132. everything performs normally.  I want to be able to enter keyboard input 
  133. when a certain string appears on the screen or when a string such as 
  134. "Please wait..." disappears from the screen.  There are times I just want 
  135. to wait until any change at all occurs on the screen.
  136.  
  137.    EXC then, is more than just a buffer stuffer.  It is a script (a.k.a. 
  138. macro) processor that has a very simple script language that allows very 
  139. complex scripts to execute much faster than you could execute them in attended 
  140. mode.  There are only slightly over thirty commands in the entire script 
  141. language!  Only about a dozen of these will be used often.  The script 
  142. language is interpretive, so no compile is needed.  It is not a TSR, so 
  143. nothing remains to eat up your precious RAM.
  144.  
  145.    EXC can even be used with your favorite DOS communications program to
  146. process online scripts.  Send E-mail, download files, etc.  EXC can even be
  147. used to automate mainframe tasks through your 3270 emulation gateway.
  148.  
  149.    You simply execute EXC specifying the script file to use and the program
  150. to be executed.  You include all command line parameters for the program
  151. as usual.  By combining EXC executions in batch files, extremely complex
  152. processing can be reduced to a single DOS command.  EXC even returns the
  153. same DOS ERRORLEVEL that your program returned upon completion.
  154.  
  155.    All you need to know now is the format of the EXC command line and how
  156. to write a script.
  157.  
  158.  
  159. 1.1 Requirements
  160.  
  161.   EXC works on any Intel 8088, 8086, 80x86 and compatible processors.  At
  162.   this time, I am unaware of any unresolved incompatibilities with any 
  163.   software or hardware configurations.  Any that are reported and not
  164.   resolved will be reported here.
  165.  
  166.  
  167. 2.0 The EXC Command Line
  168.  
  169.    Format: EXC [path]scriptfile [[path]program] [command-line parameters]
  170.  
  171.    The scriptfile is the filename of the script to be processed.  The 
  172. extension, if specified, must be .SCR, but is not required to be specified.
  173. the script file is assumed to be in the current directory if a path is
  174. not specified.
  175.  
  176.    The program does not require an extension, but it must be a .EXE or
  177. .COM executable program file.  .BAT files cannot be executed with EXC.  If
  178. the path is not specified, the environment PATH= directories are searched.
  179. If the program is omitted from the command line, COMMAND.COM (or whatever
  180. command processor is reported in the COMSPEC environment variable) is 
  181. assumed.
  182.  
  183.    The command-line parameters are any parameters that you would specify
  184. on the DOS command line if you were executing the program external to EXC.
  185.  
  186.  
  187. 2.1 Parameters that contain quotes
  188.    
  189.    If you try to pass command-line parameters to the spawned program that 
  190. contain imbedded quotes, you must use \q in place of the quotes to be 
  191. imbedded within the parameter.
  192.  
  193.    Parameters that contain spaces, |, < or > must be enclosed in quotes in
  194. order to be treated as a single parameter.
  195.  
  196.    If you want the spawned program to receive a parameter that looks like:
  197.      Help "Me" Out,
  198.    you would include it on the EXC command line as 
  199.      "Help \qMe\q Out"
  200.  
  201.   Confusing?  You bet!  But I have to work within the rules of DOS and the
  202. parameter passing rules of different languages and compilers. Amazingly, they
  203. do not all handle quoted strings in the same manner.  I learned this the
  204. hard way by publishing a release (v2.2) that did not work when spawning most
  205. PASCAL and assembler programs.
  206.  
  207.  
  208.  
  209.  
  210. 3.0 Operational notes   
  211.  
  212. 3.1 General notes
  213.  
  214.    If you want EXC scripts to execute multiple programs and/or enter 
  215. intrinsic DOS commands on the DOS command line, omit the program from
  216. the EXC command line or specify COMMAND.COM which is the default (unless
  217. a different command processor such as 4DOS and NDOS is specified in the 
  218. COMSPEC environment variable).  Your script will begin executing on an 
  219. empty DOS command line.  EXC automatically issues an EXIT if COMMAND.COM 
  220. was invoked.  If you terminate the script with LEFT SHIFT-RIGHT SHIFT, or 
  221. the script terminates with an error, you need to type EXIT at the DOS prompt 
  222. to terminate the COMMAND.COM that you started and remove EXC from memory.
  223.    
  224.    Don't get cute and try to execute EXC as the object program of an EXC
  225. command.  While it might logically work, I can see no possible need for
  226. such action and you and your system are at your own risk.
  227.  
  228.    EXC creates an extended keyboard buffer that will hold 256 keycodes.  The
  229. DOS keyboard buffer will hold 16 keycodes.  Thus you may stuff up to 272
  230. keycodes with TYPE and KEY before the program requests keyboard input.  If
  231. you overflow this buffer (very unlikely), a runtime error occurs and script
  232. processing is halted.
  233.  
  234.    EXC is written in Borland C++, a product of Borland International.
  235.  
  236.  
  237. 3.2 Interrupt keys
  238.  
  239.    You can pause execution of a script by pressing the Scroll Lock key.  If   
  240. your keyboard has a Scroll Lock indicator light, the light will be on while   
  241. the script is paused.  Pressing Scroll Lock again resumes execution of the
  242. script exactly where it left off.  Any unexpired wait time must elapse
  243. before another command is processed.
  244.  
  245.    You can terminate execution of a script by holding down both the LEFT
  246. and RIGHT SHIFT keys.  A beep will indicate that the script is being
  247. terminated.  Execution of any spawned program will continue.
  248.  
  249.    The Pause key on your keyboard pauses all execution at the time the next
  250. screen write occurs.  Timer interrupts continue.  EXC detects the pause
  251. state and suspends itself.  When you strike any key, both EXC and the
  252. spawned task will resume processing.  Any unexpired wait time must elapse
  253. before another command is processed.  While paused, the spawned program
  254. remains active.
  255.    
  256.    Since EXC is executing as a timer interrupt with your program operating
  257. as a spawned subtask, cycle-stealing multitasking is occurring.  This can 
  258. cause a few problems.  If you must interrupt execution of your program, your 
  259. best bet may actually be pressing CTRL-ALT-DEL to reboot the computer.  If 
  260. you hit CTRL-BREAK, you will normally interrupt just one task while the other
  261. continues.  Pressing CTRL-BREAK again then interrupts the remaining task.
  262. This can confuse the remaining task to no end and lead to a system lock-up
  263. or other undesirable result.  If you are lucky, you may actually get by with 
  264. it, but I don't recommend it.  Even if you terminate EXC with LEFT SHIFT-
  265. RIGHT SHIFT, the timer interrupt is still active until your program 
  266. terminates, so the same problem can occur.
  267.  
  268.  
  269. 3.3 Memory usage
  270.  
  271.    EXC requires approximately 40K of conventional memory overhead.  After
  272. loading, it then allocates a buffer to hold your script file and a buffer
  273. for reading the screen contents.  If your application program's requirements 
  274. are pushing the limits of available RAM, you may not be able to execute it 
  275. under EXC control.  If COMMAND.COM is spawned, an additional 3K (DOS 5) is 
  276. used.
  277.  
  278.    The screen buffer varies according to the screen size active at startup or
  279. the value specified in an SCRMAX command.  It will require one byte for every
  280. character position on the screen, plus 4 bytes.  Thus an 80 x 25 text mode 
  281. will require a buffer of 2004 bytes.  If SCRMAX is present, that buffer size
  282. is always allocated, regardless of the initial text mode.
  283.  
  284.    The script buffer is the size required to hold all script commands strung
  285. end-to-end with 1 byte between each command.  Leading and trailing spaces
  286. are not counted.  If you use TYPFILE, the contents of the specified file are
  287. added to the script buffer.  Thus, your script buffer will increase by the 
  288. size of all files specified in TYPFILE commands.  If you specify the same
  289. file in two different TYPFILE commands, the file will be loaded into memory 
  290. twice.  If the TYPFILE is executed multiple times within a loop, it only 
  291. requires buffer space for a single copy of the file.
  292.  
  293.    With 604k of available memory, I am able to load a simple script with
  294. 35,000 fairly short commands.  
  295.  
  296.    Versions prior to 2.0 were limited to a total memory allocation of 64k 
  297. for all buffers.
  298.  
  299.    If your script is too large, you may encounter an error allocating script
  300. memory, allocating screen buffer memory or you will see an error message that
  301. says you do not have enough memory to spawn your program.
  302.    
  303.  
  304. 3.4 Timing considerations
  305.  
  306.    EXC installs itself as a timer interrupt that is invoked 18.2 times
  307. per second.  If it has no work to do, it simply executes the system timer
  308. interrupt and any other chained timer interrupts and returns.  During waits 
  309. (DELAY, WAITFOR, etc.) the frequency of invocation is reduced to twice per 
  310. second.  This minimizes the impact of the interrupt on the performance of 
  311. your program.  A half-second is forever to most computers.  This also means
  312. that if you are searching for a string with WAITFOR, and the string flashes 
  313. on the screen for less than 1/2 second, it will not be detected.
  314.  
  315.    Needless to say, EXC does not have but 1/18th of a second to retrieve and
  316. execute a command.  This is a long time in a fast computer and a short
  317. time to a slow system.  I try to break commands down into logical parts that
  318. are executed in consecutive interrupts.  Obviously, there are some commands
  319. that will probably take longer than 1/18th of a second, especially on slower
  320. systems.  EXC is a handler for interrupt 1C.  No new 1C interrupts are
  321. initiated by the system until the active one is complete.  While missing
  322. a few interrupts has minimal effect on EXC or DOS, it could effect a spawned 
  323. task or TSR that is also servicing 1C interrupts.
  324.  
  325.    Very slow CPUs (6 Mhz or slower) may experience problems getting some
  326. tasks to function properly.  Sometimes a few judiciously placed DELAY or
  327. TICK commands will help.  Sometimes you may have to break down very long
  328. typed strings into multiple TYPE commands.  Others just may not work at all 
  329. if they just cannot accomplish their tasks fast enough.  Most of the more
  330. commonly used commands should work fine.
  331.  
  332.  
  333. 3.5 When EXC may not function or cause problems
  334.  
  335.    GRAPHICS MODES do not store text characters in video memory, only pixels
  336. of differing colors.  EXC cannot interpret these pixels into characters, thus
  337. commands that are based on screen reads will not work in graphics modes.
  338.  
  339.    In order to execute screen reads an writes rapidly due to timing 
  340. restraints, EXC reads and writes (SHOW, SHOWIN, READ, WAITFOR, WAITSCR, etc.)
  341. directly to and from video memory at pages B000-B7FF.  If you use DESQVIEW
  342. or a special graphics mode that relocates the active video page outside
  343. this area, screen reads and writes will not function properly.  This also
  344. prevents these commands from working properly in CGA modes.  All VGA text
  345. modes and most SVGA text modes should work properly.  If you use programs
  346. that change to a different text resolution during processing, please be sure 
  347. to read about the SCRMAX command.
  348.  
  349.    If the program you are executing or a TSR that is loaded in memory moves
  350. or otherwise messes with the DOS keyboard buffer, it could cause EXC to
  351. malfunction.  The most likely symptom would be keys that you TYPE or KEY
  352. not showing up or not appearing to have been pressed.  EXC uses BIOS 
  353. interrupt 16h, service 5 to insert the keys into the keyboard buffer.  It
  354. does not reallocate or move the buffer.  It merely creates a new extended
  355. buffer that only EXC is aware of.  As the timer interrupts occur, EXC
  356. always checks to see if anything is in the extended buffer, if so it will
  357. move as many keycodes as the PC keyboard buffer will hold into the keyboard
  358. buffer, or until the extended buffer is empty.  BIOS interrupt 16h is not
  359. available until later XT BIOSes.  As a general rule, EXC should not be used
  360. except on AT models or later.
  361.  
  362.    Other factors that could cause EXC to malfunction include programs and
  363. TSRs that have timer and keyboard interrupt handlers.  Customary usage of
  364. these interrupts provides for allowing other installed handlers to perform
  365. their function, but you cannot count on all programmers to abide by these
  366. conventions.  Since even "behaved" handlers can do virtually anything within 
  367. these routines, EXC cannot be guaranteed to function on these programs.  
  368. Fortunately, they are very rare.  EXC will work with many of them (i.e. 
  369. QBASIC and EDIT from MS-DOS 5.0 up).
  370.  
  371.    If a TSR or spawned task is using timer interrupt 1C for timing (music,
  372. communications, etc.) the timing could be thrown off slightly by EXC, 
  373. especially in slower systems.  In most cases, the effect will be negligible,
  374. but in some it will prevent you from being able to use EXC.
  375.  
  376.    If you experience problems with keys being ignored or missing or out of
  377. order, try the SLOW and/or NOINT9 commands.  See the description of these
  378. commands for more details.
  379.  
  380.    If you spot another program, video mode or anything else that causes
  381. EXC to malfunction, send me a CIS mail or U.S. mail note and I will check
  382. it out if I can.  I will include a note in this section on those reported
  383. problems if they cannot be fixed.
  384.  
  385.  
  386. 3.6 Specific problems
  387.  
  388. 3.6.1 Remote control communications
  389.  
  390. Some communications programs, especially those used for remote control of
  391. a PC, may cause some particular problems for EXC.  WIZLINK, a very good 
  392. shareware implementation, evidently runs a timer interrupt that empties the 
  393. comm buffer and paints the screen.  This interrupt has a lot to accomplish 
  394. and does not take kindly to another interrupt handler stealing CPU cycles 
  395. that it needs.
  396.  
  397. The symptoms seen are unusual characters appearing on the screen and WIZLINK
  398. occasionally logging off the host.  This is seen when a WAITFOR or WAITSCR
  399. is active at this point in your script.  The WAITFOR may not detect a
  400. matching string because of the garbaged screen display.
  401.  
  402. The best solution is not to use WAITFOR and WAITSCR commands.  By using
  403. DELAY instead, all seems to work well.  Here is a compromise that appears 
  404. to work O.K. with a little experimentation and tuning:
  405.  
  406. In your script, just before the connection is made with the host, issue a
  407. SLOW command. Then in the place of WAITFORs during an active session, use 
  408. the following:
  409.  
  410.         :LOOP1
  411.         DEALY 5
  412.         SEARCH "String I Want"
  413.         IFN LOOP1
  414.  
  415. Use this loop in the place of the WAITFOR and make sure you place the DELAY 
  416. before the SEARCH.  Experiment with the amount of delay to find the lowest
  417. value that repeatedly eliminates the garbled screen.  The slower the baud 
  418. rate used for the session, the longer the DELAY has to be.
  419.  
  420. Similar problems have been reported, but not yet verified by me, with 
  421. pcANYWHERE III and SmartTerm 240.
  422.  
  423.  
  424. 3.7 Error handling
  425.  
  426.    If an error occurs that prevents EXC from initiating the program, a
  427. message will appear and a DOS ERRORLEVEL of 255 will be returned.  If
  428. the program is successfully initiated, EXC will return the DOS ERRORLEVEL
  429. that the program returned when it completed.  There is an RC = nnn message
  430. after EXC terminates that displays the DOS ERRORLEVEL returned by your
  431. program and by EXC.  When COMMAND.COM is executed, the ERRORLEVEL will
  432. not reflect what was returned from one of the programs you executed and
  433. will always be zero.
  434.  
  435.    If EXC encounters an error while processing the script (i.e. an invalid
  436. script statement) it will sound two short beeps on the PC speaker and
  437. terminate processing any more script commands.  When the spawned program
  438. completes or is exited, a message will appear specifying the error EXC 
  439. encountered.
  440.  
  441.    If the spawned program terminates before EXC has finished processing
  442. the script, all script processing terminates at that point.  Keycodes
  443. that have been stuffed into the buffer remain there.  This allows you
  444. to enter a new command on the DOS command line from within your script.
  445. You can actually chain EXC processing without the use of a batch file.
  446.  
  447.  
  448. 4.0 Scripts
  449.  
  450.   Scripts can be written with any ASCII text file editor.  There is one 
  451. command per line.  Leading and trailing blanks and tabs, lines beginning with 
  452. a semicolon (;) and blank lines are ignored by the script processor.  You may 
  453. have more than one blank between the command and its parameter(s).
  454.  
  455.   All window coordinates specified in some commands are based on the full 
  456. screen currently displayed.  The upper left corner is column 1, row 1.
  457.  
  458.   All "string" parameters can accept quotes within the string by placing
  459. the characters \q (lower case) in the string where you want a quote to
  460. occur.
  461.  
  462.  
  463. 4.1 Script Commands
  464.  
  465.  Note: Brackets ([]) indicate an optional parameter and should not be
  466.        included as part of the command.  Quotes (""), where specified, 
  467.        are required to be entered as part of the parameter.
  468.  
  469.  BEEP                   Sound a short beep on speaker. Useful in debugging
  470.                         scripts.
  471.  CASE ON                The CASE commands enable case-sensitive (ON) or case-
  472.  CASE OFF               insensitive (OFF) compares by WAITFOR and SEARCH.  The
  473.                         initial mode is CASE ON.
  474.  CLEAR                  Clear the screen.
  475.  CURSOR col row         Move the cursor to the specified coordinates.
  476.  DELAY n                Wait n seconds
  477.  FAST                   Turns off SLOW mode if SLOW was invoked.
  478.  GOTO label             Unconditional branch to label.
  479.  IFN label              If condition set to N, go to label.
  480.  IFY label              If condition set to Y, go to label.
  481.  INT9                   Issue interrupt 9 (default mode).
  482.  HIDEWIN                Restore a window displayed with SHOWIN to it's 
  483.                         original color attributes.
  484.  KEY mnemonic [n]       Push the key onto the keyboard stack. 'n' is the
  485.                         number of times you want the keycode inserted.
  486.  LOCATE "string"        Reads the screen until the string appears, then moves 
  487.                         the cursor to the start of the string.
  488.  LOOK "string"          Test to see if the string was on the screen at the 
  489.                         time the screen was last read.  Screen reads occur
  490.                         during execution of READ, SEARCH, WAITSCR and WAITFOR 
  491.                         commands.  Sets "Y/N" condition.
  492.  NOINT9                 Stop issuing interrupt 9s.
  493.  ON n label             Command will do nothing n times and on pass n+1, it
  494.                         will branch to label.
  495.  ONRESET                Reset the ON counter when terminating an ON loop
  496.                         early.
  497.  PAUSE                  Causes the script to be paused as if Scroll Lock were
  498.                         pressed.
  499.  QUIT                   Halt processing the script file.
  500.                         End-of-file on the script file issues an automatic
  501.                         QUIT.
  502.  READ                   Read the current screen contents.
  503.  SCRMAX cols rows       Specifies the largest screen size that will be used
  504.                         during execution.  Used to allocate screen buffer.
  505.  SEARCH "string"        Read screen and test to see if the string is on the 
  506.                         screen. Sets "Y/N" condition.
  507.  SET n "string"         Set variable n to value "string".
  508.  SETWAIT nnn            Wait nnn seconds before a WAITFOR or WAITSCR times
  509.                         out.
  510.  SHOW attr "string"     Display the string using the specified attribute.
  511.                         Displays at the location specified in SHOWAT.
  512.  SHOWAT col row         Specifies location for subsequent SHOW command
  513.                         strings to be displayed.
  514.  SHOWIN attr            Rewrite the current window text in the specified
  515.                         attribute.
  516.  SLOW [n]               SLOW mode can help you on slow CPUs or slow programs.  
  517.                         Slower keying.
  518.  TICK n                 Same as DELAY except n represents 1/18th of a second
  519.                         instead of a second.
  520.  TIME hhmmss            Pause execution of subsequent commands until the
  521.                         specified time of day.
  522.  TIMEOUT label          Branch to label when the next WAITFOR or WAITSCR
  523.                         timeout occurs.
  524.  TYPE "string"          Type the ASCII string.
  525.  TYPFILE filespec [mnemonic]      
  526.                         Type the contents of the specified file.  Replace
  527.                         CR/LFs with specified mnemonic.
  528.  WAITFOR [NOT] "string" Wait until the string appears on the screen.  If NOT
  529.                         specified, wait until string is not on screen.
  530.  WAITSCR                Wait until anything changes on the screen.
  531.  WINCOLS start end      Limit screen reads and SHOWIN to the screen columns
  532.                         specified.
  533.  WINMAX                 Remove row and column restraints imposed by WINCOLS
  534.                         and WINROWS.  Subsequent reads read the full screen.
  535.  WINROWS start end      Limit screen reads and SHOWIN to the screen rows
  536.                         specified.
  537.  :label                 Define a label.
  538.  
  539.  
  540. 4.1.1 BEEP
  541.  
  542.  Sounds a short BEEP on the PC speaker.  Since there is no visual feedback
  543.  for many of the operations and branches performed while processing a script,
  544.  debugging a script can be tough if it is complex.  Inserting a BEEP at a
  545.  strategic location in the script will tell you if processing ever reached
  546.  that point in the script.
  547.  
  548.  NOTE: BEEP does not extend the duration of the timer interrupt.  It actually
  549.  is turned on, then turned off a few ticks later.
  550.  
  551.  
  552. 4.1.2 CASE ON / CASE OFF
  553.  
  554.  The CASE commands determine case sensitivity during SEARCH, LOOK and WAITFOR
  555.  string searches.  If CASE is ON, the search string and screen contents are 
  556.  unchanged during the search, and must match in upper and lower case.  If 
  557.  CASE is OFF, the search string and all characters read from the screen are 
  558.  converted to upper-case before the search begins so that case does not 
  559.  influence the result of the compare.
  560.  
  561.  The initial CASE mode is ON.
  562.  
  563.  NOTE - You must reread the screen after changing the CASE mode before the
  564.  new CASE mode will take effect.
  565.  
  566.  See TIMEOUT for example.
  567.  
  568.  
  569. 4.1.3 CLEAR
  570.  
  571.  The CLEAR command clears the entire screen, not just the active window. 
  572.  It also homes the cursor.  Use with caution, this could cause problems 
  573.  within many applications.
  574.  
  575.  
  576. 4.1.4 CURSOR col row
  577.  
  578.  The cursor is moved to the location on the screen (not just within the
  579.  active window) specified by col and row.  Col and row are the screen column
  580.  and row.
  581.  
  582.  CURSOR is designed primarily to be used in a full screen editor or similar
  583.  applications where the cursor can be moved with the arrow keys.  The 
  584.  destination must be in an area of the screen where the active application 
  585.  allows typing.
  586.  
  587.  In order for your application to recognize that the cursor has been moved,
  588.  a series of <LEFT> <RIGHT> <UP> and <DOWN> keys are stuffed into the
  589.  buffer and executed until the cursor is at the desired location.  If you
  590.  send the cursor to a location that is not in an acceptable input area of
  591.  the active application, the cursor will jump around the destination, but
  592.  never get there.  You will have to terminate the script with LEFT SHIFT-
  593.  RIGHT SHIFT.
  594.  
  595.  Example:
  596.  
  597.    CURSOR 17 41
  598.  
  599.  
  600. 4.1.5 DELAY n
  601.  
  602.  Pauses execution of subsequent script commands until the specified number
  603.  of seconds has elapsed.
  604.  
  605.  Example: DELAY 3
  606.  
  607.  
  608. 4.1.6 FAST
  609.  
  610.  FAST is used to reverse the effect of a previous SLOW command.  FAST is the
  611.  initial state.  See the SLOW command for a full explanation.  FAST has no
  612.  parameters.
  613.  
  614.  
  615. 4.1.7 GOTO label
  616.  
  617.  Executes an unconditional branch to the command following the specified 
  618.  label. 
  619.  
  620.  See ON for example.
  621.  
  622.  
  623. 4.1.8 HIDEWIN
  624.  
  625.  Restore the active window to its original attributes after a SHOWIN command 
  626.  has be executed.  If no SHOWIN has been executed, the results will not be
  627.  pleasing to the eye.  Also, screen reading commands must not be executed
  628.  between a SHOWIN and its corresponding HIDEWIN.  See SHOWIN for reasons for
  629.  using SHOWIN and HIDEWIN.
  630.  
  631.  See SHOWIN for example.
  632.  
  633.  
  634. 4.1.9 IFN label
  635.  
  636.  This tests the results of a previous SEARCH or LOOK command.  If the search 
  637.  string was not located on the screen, processing resumes at the command 
  638.  following the specified label.  If the string was found on the screen, 
  639.  processing resumes with the next command after the IFY command.
  640.  
  641.  If no previous SEARCH or LOOK has been issued, processing continues after 
  642.  branching to the specified label.  Thus, without a preceding SEARCH or
  643.  LOOK command, the IFN command becomes an unconditional branch equivalent to 
  644.  a GOTO command.
  645.  
  646.  The IFN statement does not have to be the next command after the SEARCH or
  647.  LOOK.
  648.  
  649.  Example:
  650.  
  651.  :Loop
  652.    READ
  653.    LOOK "XYZ"
  654.    IFN LoopEnd
  655.    .
  656.    .
  657.    .
  658.    GOTO Loop
  659.  :LoopEnd
  660.    .
  661.    .
  662.    .
  663.  
  664.  
  665. 4.1.10 IFY label
  666.  
  667.  This tests the results of a previous SEARCH or LOOK command.  If the search 
  668.  string was located on the screen, processing resumes at the command 
  669.  following the specified label.  If the string was not found on the screen, 
  670.  processing resumes with the next command after the IFY command.
  671.  
  672.  If no previous SEARCH or LOOK has been issued, the result is negative and 
  673.  processing continues without branching.  Thus, without a preceding SEARCH 
  674.  or LOOK command, the IFY statement appears as a null or nonexistent command.
  675.  
  676.  The IFY statement does not have to be the next command after the SEARCH or 
  677.  LOOK.
  678.  
  679.  See ON for example.
  680.  
  681.  
  682. 4.1.11 INT9
  683.  
  684.  INT9 is used to reverse the effect of a previous NOINT9 command.  INT9 is 
  685.  the initial state.  See the NOINT9 command for a full explanation.  INT9
  686.  has no parameters.
  687.  
  688.  
  689. 4.1.12 KEY <mnemonic> [n]
  690.  
  691.  KEY is used to enter special keys that require mnemonics (special names
  692.  enclosed in <> that represent their function) in order to input them to
  693.  the keyboard buffer.
  694.  
  695.  If n is specified, it is the number of times <mnemonic> will be inserted 
  696.  into the keyboard buffer.  For instance, if you wanted three TABs, you would
  697.  type "KEY <TAB> 3".  If n is not specified, it is assumed to be 1.
  698.  
  699.  The following key mnemonics are recognized:
  700.  
  701.  Single keys mnemonics:
  702.  
  703.  <BKSP>          <DEL>            <DOWN>           <END>            <ENTER>
  704.  <F1>-<F12>      <ESC>            <HOME>           <INS>            <LEFT>
  705.  <PGDN>          <PGUP>           <PRTSC>          <RIGHT>          <TAB>
  706.  <UP>            <GRAY5>          <GRAY+>          <GRAY->          <GRAY*>
  707.  <x>             <SPACE>
  708.  
  709.  Two key mnemonics (see note below):
  710.  
  711.  Shift key combinations: <SHF+s> or <SHF+x>     
  712.  CTL key combinations:   <CTL+s> or <CTL+x>
  713.  ALT key combinations:   <ALT+s> or <ALT+x>
  714.  
  715.  Three key mnemonics (see note below):
  716.  
  717.  Shift + ALT key combinations: <ALT+SHF+s> or <ALT+SHF+x>
  718.  CTL + ALT key combinations:   <CTL+ALT+s> or <CTL+ALT+x>
  719.  CTL + Shift key combinations: <CTL+SHF+s> or <CTL+SHF+x>
  720.  
  721.  Four key mnemonics (see note below):
  722.  
  723.  <CTL+ALT+SHF+s> or <CTL+ALT+SHF+x>
  724.  
  725.  x = any ASCII value that can be entered from the keyboard with a single
  726.      key, or SHIFT + a single key.
  727.  
  728.  s = any of the single key mnemonic keywords or character except <PRTSC>.
  729.  
  730.  NOTE: Some SHF, CTL and ALT key combinations are undefined.  See the
  731.        keycode table in Appendix A.  
  732.  
  733.        Do not use <SHF+a> to simulate a capital A, or any other letter.  Just 
  734.        use the appropriate case in a TYPE statement, i.e. TYPE "A".
  735.  
  736.        When entering 3-or-more-key combinations you must make sure you are
  737.        at the correct point in your program for entering these keys and that
  738.        no other keys are still unprocessed in the buffer.  To detect these
  739.        combinations, a program must interrogate the BIOS keyboard flags to 
  740.        see if CTL, ALT or SHIFT are being held down.  This can only be done 
  741.        in real time as the keys are being pressed, therefore they cannot be 
  742.        stuffed into the keyboard buffer, and must be executed immediately
  743.        upon encountering the KEY command in the script.  The appropriate
  744.        flags are set, the keycode is stuffed and an interrupt 9 is issued.
  745.        If there is already a key in the buffer, the flags will accompany
  746.        the wrong keycode when the interrupt 9 is processed.
  747.  
  748.        Not all programs will recognize these combinations as simulated by
  749.        EXC.  Attachmate's EXTRA!, for example, maintains such tight control
  750.        of the keyboard, that EXC's control key combinations are ignored.
  751.  
  752.  Examples:
  753.  
  754.    KEY <ESC> 3
  755.    KEY <CTL+F10>
  756.    KEY <ENTER>
  757.  
  758.  
  759. 4.1.13 LOCATE "string"
  760.  
  761.  The LOCATE command is mostly a combination of WAITFOR and CURSOR.  You
  762.  provide a string.  Processing will be suspended until that string appears
  763.  in the active window or a timeout occurs.  Once the string is located,
  764.  the cursor is moved, via a sequence of arrow keys stuffed in the keyboard
  765.  buffer, to the location of the first character of the string.
  766.  
  767.  LOCATE is designed primarily to be used in a full screen editor or similar
  768.  application where the cursor can be moved with the arrow keys.  The located
  769.  string must be in an area of the screen where the active application allows
  770.  typing.
  771.  
  772.  
  773. 4.1.14 LOOK "string"
  774.  
  775.  Look at the last screen that was read to see if it contains the value in
  776.  "string".  The entire active window contents will be searched to see if 
  777.  "string" was being displayed when the last screen read occurred.   The 
  778.  string may be any valid screen characters.  There is no wait involved as 
  779.  with WAITFOR.
  780.  
  781.  The screen contents are read each time a READ, SEARCH, WAITSCR, WAITFOR or
  782.  LOCATE command is executed.  In the case of WAITFOR and WAITSCR, multiple 
  783.  reads occur until a search string or change is detected.  The contents of 
  784.  the screen buffer remain as they were when the last read was executed at the
  785.  time the search string or change was detected or a timeout occurred.
  786.  
  787.  Once it has been determined whether or not "string" was being displayed,
  788.  an internal variable is set to "Y" or "N".  IFY and IFN can then be used to
  789.  test the result of the search and then branch accordingly.
  790.  
  791.  
  792. 4.1.15 NOINT9
  793.  
  794.  A few certain programs (i.e. MS-DOS's EDIT and the QBASIC editor) require
  795.  a keyboard interrupt before they will process keys in the keyboard buffer.
  796.  For this reason, EXC normally issues the interrupt 9 keyboard interrupt.
  797.  
  798.  It is conceivable that other programs may have interrupt handlers that do
  799.  not like the INT9 being issued.  The most likely symptom would be keys not
  800.  processed or processed out of order.
  801.  
  802.  Specifying NOINT9 will cause EXC to not issue the INT9.  Try this command
  803.  if you are having problems you can't seem to resolve.  Also try the SLOW  
  804.  command.
  805.  
  806.  INT9 should normally be issued once in the script before any TYPE, KEY or 
  807.  TYPFILE commands are issued.  It can however, be turned on to get you over 
  808.  a sticky area, then reversed by issuing the INT9 command.  You can issue
  809.  the NOINT9/INT9 commands as many times as you wish.  NOINT9 has no 
  810.  parameters.
  811.  
  812.  Example:
  813.   
  814.    NOINT9
  815.    TYPFILE C:\MYFILE.TXT
  816.    INT9
  817.  
  818.  
  819. 4.1.16 ON n label
  820.  
  821.  For the first n executions of the ON command, execution simply passes to the 
  822.  next command.  On the next pass through the ON command, a branch occurs to
  823.  label.  The value of n can range from 1 to 9999.
  824.  
  825.  A second ON command must not be issued while another ON command is active.
  826.  This will cause unpredictable results.  After an ON command has counted
  827.  down and branched, another ON command may be issued.  You can reset the
  828.  ON counter to zero by using the ONRESET command.  Then additional ON
  829.  command can be issued even if the previous one has not reached zero.
  830.  Obviously, multiple ON commands cannot be processing at the same time.  For
  831.  instance, you may not call a subroutine that contains an ON command from
  832.  within an ON loop.  A good practice is to always issue the ONRESET command
  833.  when exiting an ON loop via any branch other than that specified in the
  834.  ON command.
  835.  
  836.  Example:
  837.  
  838.      :LOOP
  839.        ON 5 ENDLOOP
  840.        SEARCH "ERROR:"
  841.        IFY ERROR
  842.        TYPE "xyz"      - These two instructions are executed five
  843.        KEY <DOWN>      - times unless an error message pops up.
  844.        GOTO LOOP
  845.      :ENDLOOP
  846.        KEY <ENTER>
  847.      :ERROR
  848.        ONRESET
  849.      :LOOP2
  850.        ON 3 QUITPGM
  851.        .
  852.        .
  853.        .
  854.        GOTO LOOP2
  855.      :QUITPGM
  856.        QUIT
  857.  
  858.  
  859. 4.1.17 ONRESET
  860.  
  861.  Used to reset the ON counter so than another ON may be issued if the
  862.  previous one has not completed.
  863.  
  864.  See ON for further explanation and example.
  865.  
  866.  
  867. 4.1.18 PAUSE
  868.  
  869.  PAUSE simulates pressing the Scroll Lock key to pause the script execution.
  870.  See the section on interrupt keys for a description of pause processing.
  871.  
  872.  
  873. 4.1.19 QUIT [n]
  874.  
  875.  QUIT stops processing a script at the point where it is encountered during
  876.  script execution.  The same result is obtained when there are no more script
  877.  commands to process.
  878.  
  879.  Normally on exit, EXC returns the return code of the executed program.  If
  880.  a number (0-255) is specified with the QUIT command, that value is returned
  881.  as the DOS ERRORLEVEL return code instead of what was passed from the
  882.  spawned program.
  883.  
  884.  An example of why you would want to set a return code:
  885.  
  886.    I use EXC to control PROCOMM PLUS to execute a script that synchro-
  887.    nizes my clock with the Naval Observatory.  I need to know if it
  888.    fails.
  889.  
  890.    I can detect the error with my EXC script, but when I exit PCPLUS,
  891.    PCPLUS always returns a return code of 255.  Using the QUIT nn format,
  892.    I can set a return code of 1 on error and 0 when there is no error.
  893.  
  894.  If COMMAND.COM was invoked by the EXC command line, QUIT types EXIT and keys
  895.  <ENTER> in order for EXC to be able to complete.  If you issue the QUIT 
  896.  while another program is active, you will not obtain the desired results.
  897.  
  898.  See TIMEOUT for example.
  899.  
  900.  
  901. 4.1.20 READ
  902.  
  903.  Reads the active window for subsequent testing with the LOOK command.  Using
  904.  a READ followed by several LOOKs that examine the same screen contents can
  905.  be much more efficient than issuing several SEARCHes, each of which reads
  906.  the entire screen contents.
  907.  
  908.  
  909. 4.1.21 SCRMAX cols rows
  910.  
  911.  I hate including technical parameters in my commands, but this one is a
  912.  must for successful operation of EXC in larger screen modes.
  913.  
  914.  Specify SCRMAX if you expect a spawned application to change to a text 
  915.  screen mode larger than the text mode in use when EXC is initiated.  For
  916.  instance, if you are in DOS with 25 rows of 80 column text and you initiate
  917.  an editor with EXC and the editor places the screen in 80x50 text mode,
  918.  specify "SCRMAX 80 50" in your script (no quotes).  Since this command is
  919.  processed when the script is being loaded into memory and not after the
  920.  script processing begins, it may be placed anywhere within your script.
  921.  Logically, it should occur at the start.  If multiple SCRMAX commands are
  922.  encountered, only the last one input will be used.  If your application will
  923.  use multiple screen sizes, specify the largest (in area: cols times rows)
  924.  that will be used.
  925.  
  926.  If you do not include SCRMAX in your script, it is assumed that the screen
  927.  size in effect when EXC is loaded and before the spawned program is loaded 
  928.  will be the maximum size needed.
  929.  
  930.  The range of text mode screen sizes supported by EXC includes from 40x20 to 
  931.  200x100 characters.
  932.  
  933.  SCRMAX can have a major impact in the amount of memory occupied by EXC.
  934.  It would seem that the logical thing for EXC to do would be to examine
  935.  the screen size before each read and allocate the screen memory buffer
  936.  accordingly at that time.  However, since EXC spawns another program which
  937.  can, and often does, allocate all of the remaining memory, EXC must pre-
  938.  allocate the largest buffer that will be required before spawning the 
  939.  program.  A screen buffer requires the same number of bytes as the rows 
  940.  times the columns, plus 4 bytes.  Thus, an 80x25 VGA text screen will 
  941.  require a 2,004 byte buffer.  I actually had a user contact me who uses a 
  942.  132x66 display (great eyes or a huge monitor!).  This would require 132 * 66 
  943.  or 8,712 bytes of memory.  
  944.  
  945.  If you do not specify SCRMAX and your program bumps up the screen size,
  946.  the effective area of the larger screen is the upper left quadrant
  947.  corresponding to the size of the screen when EXC was loaded.  This is
  948.  also true if you specify an SCRMAX smaller than the largest screen.  In
  949.  other words, if you specify SCRMAX 80 25 and your program changes to a
  950.  132x44 screen,  Only the first 80 columns and 25 rows are read by EXC's
  951.  READ, WAITFOR, WAITSCR, LOCATE and SEARCH commands.  If all of the strings
  952.  you search for and changes you wish to detect are in the upper left of
  953.  the screen, you can save memory by specifying a smaller SCRMAX size.  You 
  954.  would really have to be in a memory crunch to bother with this approach, 
  955.  I suspect.
  956.   
  957.  Examples:
  958.  
  959.    SCRMAX 80 50
  960.    SCRMAX 132 25
  961.  
  962.  
  963. 4.1.22 SEARCH "string"
  964.  
  965.  At any point in processing the script, you may check to see if certain
  966.  information is on the screen.  The entire active window will be read and
  967.  searched to see if "string" is being displayed.   The string may be any
  968.  valid screen characters.  There is no wait involved as with WAITFOR.
  969.  
  970.  Once it has been determined whether or not the string is being displayed,
  971.  an internal variable is set to "Y" or "N".  IFY and IFN can then be used to
  972.  test the result of the search and then branch accordingly.
  973.  
  974.  SEARCH is basically a READ followed immediately by a LOOK.
  975.  
  976.  See ON for example.
  977.  
  978.  
  979. 4.1.23 SET n "string"|NULL
  980.  
  981.  SET is used to set one of the 16 user variables to a value, where n is
  982.  the variable number (1-16) and string is the value which will be assigned to
  983.  the varable.  Do not surround n with @s which are used to reference variables
  984.  for substitution.
  985.  
  986.  To clear a variable, type SET n NULL.
  987.  
  988.  See "User variables" for more information and examples.
  989.  
  990.  
  991. 4.1.24 SETWAIT seconds
  992.  
  993.  This sets the timeout limit for WAITSCR, WAITFOR and LOCATE commands.  If
  994.  processing is waiting after invoking any of these commands and the specified
  995.  number of seconds elapses, TIMEOUT processing, described under TIMEOUT, will
  996.  be invoked.
  997.  
  998.  You may change the SETWAIT timeout limit at any point while processing the
  999.  script.
  1000.  
  1001.  If SETWAIT is set to zero, no timeout ever takes place and EXC will wait
  1002.  indefinitely during WAITFOR, WAITSCR and LOCATE.  The initial value of the
  1003.  SETWAIT timer is zero.
  1004.  
  1005.  See TIMEOUT for example.
  1006.  
  1007.  
  1008. 4.1.25 SHOW attr "string"
  1009.  
  1010.   SHOW displays a string at a given location on the screen.  This command
  1011.  is mostly useful for debugging scripts by displaying information about the
  1012.  progress of the script during execution.  While mostly harmless, it can cause
  1013.  problems if a spawned program reads screen memory.  Use it cautiously.
  1014.  
  1015.  The string is displayed at the location specified in the last executed
  1016.  SHOWAT command.
  1017.  
  1018.  The screen attribute is the sum of a background value plus a foreground
  1019.  value from the table below.  Add 128 if you want it to blink.
  1020.  
  1021.   Background colors:       Foreground colors:
  1022.  
  1023.     0 Black                 0 Black
  1024.    16 Blue                  1 Blue
  1025.    32 Green                 2 Green
  1026.    48 Cyan                  3 Cyan
  1027.    64 Red                   4 Red
  1028.    80 Magenta               5 Magenta
  1029.    96 Brown                 6 Brown
  1030.   112 Light Gray            7 Light Gray
  1031.                             8 Dark Gray
  1032.                             9 Light Blue
  1033.                            10 Light Green
  1034.                            11 Light Cyan
  1035.                            12 Light Red
  1036.                            13 Light Magenta
  1037.                            14 Yellow
  1038.                            15 White
  1039.  
  1040.  See TIMEOUT for example. 
  1041.  
  1042.  
  1043. 4.1.26 SHOWAT col row
  1044.  
  1045.  Specifies the location on the screen where subsequent SHOW commands will
  1046.  display their strings.  The location does not have to be within the active
  1047.  window set via WINROWS and WINCOLS.
  1048.  
  1049.  See TIMEOUT for example.
  1050.  
  1051.  
  1052. 4.1.27 SHOWIN attr
  1053.  
  1054.  SHOWIN is designed as an aid to script writing.  Sometimes you will want to
  1055.  restrict the active window to certain rows and columns, thus creating a
  1056.  smaller active window for processing commands that read the screen.
  1057.  
  1058.  To make sure you have calculated the correct area for the active window, you
  1059.  can use SHOWIN to show you where the active window is located on the
  1060.  screen.  SHOWIN will change the attribute of all characters and spaces
  1061.  within the active window to that specified.  See the SHOW command for
  1062.  attribute values.
  1063.  
  1064.  HIDEWIN can then be used to restore the window to its normal attributes.
  1065.  There must never be any screen reading commands (WAITFOR, WAITSCR, SEARCH,
  1066.  READ and LOCATE) executed between the SHOWIN and its associated HIDEWIN.
  1067.  
  1068.  
  1069.  Example:
  1070.  
  1071.     WINCOLS 10 30
  1072.     WINROWS 12 22
  1073.     SHOWIN
  1074.     PAUSE
  1075.     HIDEWIN
  1076.  
  1077.  
  1078. 4.1.28 SLOW [n]
  1079.  
  1080.  Some slow CPUs may have problems where a few characters in TYPEd strings get
  1081.  entered out of order or are missing.  The problem may also occur when
  1082.  TYPFILE is used.  The problem can also occur with an apllication that is
  1083.  slow in reading the keyboard.  Using the SLOW command can often resolve the
  1084.  problem, although the strings will be typed in a little slower.
  1085.  
  1086.  Other problems, as yet undetermined, might be fixed by using SLOW, so give
  1087.  it a try if your script is not responding properly, regardless of the speed
  1088.  of your CPU.  You might also try the NOINT9 command.
  1089.  
  1090.  SLOW should normally be issued once in the script before any TYPE, KEY or 
  1091.  TYPFILE commands are issued.  It can however, be turned on to get you over 
  1092.  a sticky area, then turned off by issuing the FAST command.  You can issue
  1093.  the SLOW/FAST commands as many times as you wish.  SLOW has no parameters.
  1094.  
  1095.  The parameter [n] controls the amount of slowing, with 1 being the slowest
  1096.  and 16 being the fastest keyboard entry speed.  SLOW 16 is still much slower
  1097.  than FAST mode on large strings and files.  SLOW 3 is assumed if n is not
  1098.  specified.
  1099.  
  1100.  Example:
  1101.  
  1102.    SLOW 5
  1103.    TYPFILE C:\MYFILE.TXT
  1104.    FAST
  1105.  
  1106.  
  1107. 4.1.29 TICK n
  1108.  
  1109.  Pauses execution of subsequent script commands until the specified number
  1110.  of system clock ticks (18.2 per second) have elapsed.
  1111.  
  1112.  Example: TICK 12
  1113.  
  1114.  
  1115. 4.1.30 TIME hhmmss
  1116.  
  1117.  Pauses execution of subsequent script commands until the specified time of
  1118.  day.  The time must be specified in 24-hour format.  If the time has
  1119.  already passed when the TIME command is processed, processing is suspended
  1120.  until the next time the specified time of day occurs.
  1121.  
  1122.  Leading zeros are required if the hour, minute or second is less that two
  1123.  digits.  For instance two minutes after one in the morning is entered as
  1124.  010200.
  1125.  
  1126.  Note- The real time clock (set by the DOS TIME command in AT and later
  1127.  machines using DOS 3.x or later) and the system timer (which EXC uses) are
  1128.  not always in synch to the second.  There may be a few seconds variation.
  1129.  
  1130.  Example:
  1131.  
  1132.   ; At 1:15 PM, set off an alarm that can be shut off with LEFT SHIFT-RIGHT
  1133.   ; SHIFT
  1134.  
  1135.     TIME 131500
  1136.  
  1137.   :Loop
  1138.     BEEP
  1139.     GOTO Loop
  1140.  
  1141.  
  1142. 4.1.31 TIMEOUT label
  1143.  
  1144.  When the timeout limit specified by SETWAIT expires while waiting for a
  1145.  WAITSCR, WAITFOR or LOCATE, TIMEOUT processing is invoked.  Timeout
  1146.  processing is as follows:
  1147.  
  1148.  If no TIMEOUT command has yet been issued in the script, processing of the
  1149.  script is halted at this point.  Otherwise, the control will pass to the
  1150.  command following the label specified in the last TIMEOUT command 
  1151.  encountered.
  1152.  
  1153.  Example:
  1154.  
  1155.    SETWAIT 20
  1156.    TIMEOUT TimedOut
  1157.    SHOWAT 17 25
  1158.    WINCOLS 20 40
  1159.    WINROWS 15 22
  1160.    CASE ON
  1161.    
  1162.    WAITFOR "XYZ"
  1163.    SHOW 79 "Found XYZ in window."
  1164.    QUIT
  1165.  
  1166. :TimedOut
  1167.    SHOW 79 "Timed out waiting for XYZ to appear in window."
  1168.    WINMAX
  1169.    CASE OFF
  1170.    .
  1171.    .
  1172.    .
  1173.  
  1174.  
  1175. 4.1.32 TYPE "string"
  1176.  
  1177.  The string following the TYPE command contains ASCII characters to be placed
  1178.  in the keyboard buffer.  ASCII character are those with a decimal equivalent
  1179.  of 0-127.  Do not use high-bit characters (graphics characters, foreign
  1180.  language characters and most symbols) that range from 128-255 in their
  1181.  decimal equivalents.  These characters hove no valid keycode associated
  1182.  with them.  To enter special keys such as function keys, ENTER, ESC, etc.,
  1183.  use the KEY command followed by the required mnemonic.  You cannot enter
  1184.  these mnemonics with the TYPE command.  The string must be enclosed in
  1185.  quotes.
  1186.  
  1187.  See ON for example.
  1188.  
  1189.  
  1190. 4.1.33 TYPFILE filespec [mnemonic]
  1191.  
  1192.  TYPFILE allows you to type the contents of a file into the keyboard buffer.
  1193.  The filespec is the filename with optional path information.
  1194.  
  1195.  A possible use for this would be to feed an electronic mail message to a
  1196.  communications program.  Each line of the file is entered as is (no
  1197.  deletion of leading or trailing spaces, conversion of quotes, etc.).
  1198.  
  1199.  If no mnemonic is specified, the carriage return/line feed characters at
  1200.  the end of each line are ignored by EXC, and nothing is entered in their
  1201.  place.  If a mnemonic is specified, carriage return/line feed pairs are
  1202.  converted to the key mnemonic specified.  For instance, if the file is
  1203.  being copied into a word processor or editor that uses the ENTER key to
  1204.  move to the next line, you may want to convert CR/LFs to <ENTER>.  If you
  1205.  want the word processor to split the lines according to its margins, you
  1206.  would not specify a mnemonic or you would specify <SPACE>.
  1207.  
  1208.  Specifying <SPACE> for the mnemonic will keep the last word on a line from
  1209.  running into the first word on the next line when the CR/LF is removed.
  1210.  
  1211.  All other key mnemonics are described under the KEY command.
  1212.  
  1213.  Since EXC only has a 256 byte extended keyboard buffer, it feeds a maximum 
  1214.  of 80 bytes every clock tick into the extended buffer.  This should give 
  1215.  time for the spawned program to read characters from the buffer and will 
  1216.  usually prevent the buffer from overflowing.
  1217.  
  1218.  Please see the notes in section 3 regarding memory usage to determine the
  1219.  effects on memory of using TYPFILE.
  1220.  
  1221.  
  1222. 4.1.34 WAITFOR [NOT] "string"
  1223.  
  1224.  No further script file command will be processed until "string" appears on
  1225.  the screen.  The entire screen will be searched for "string".  The string
  1226.  may be any valid screen characters.  If the string does not appear before
  1227.  the SETWAIT limit expires, TIMEOUT processing will be invoked.
  1228.  
  1229.  If NOT is specified, processing will be halted until "string" is not on the
  1230.  screen.  This is handy for waiting on a "Please wait.." type message to
  1231.  disappear.
  1232.  
  1233.  Since WAITFOR reads the screen each 1/2 second, values that flash on the
  1234.  screen for less than 1/2 second may not be detected.
  1235.  
  1236.  See TIMEOUT for example.
  1237.  
  1238.  WAITFOR NOT example:
  1239.  
  1240.    WAITFOR NOT "XYZ"
  1241.  
  1242.  
  1243. 4.1.35 WAITSCR
  1244.  
  1245.  Wait until there is any change to the screen before executing the next
  1246.  script command.  If there is no screen change before the SETWAIT limit
  1247.  expires, TIMEOUT processing will be invoked.
  1248.  
  1249.  
  1250. 4.1.36 WINCOLS start end
  1251.  
  1252.  Sometimes you may want to restrict your screen searches to a certain area
  1253.  of the screen.  WINCOLS allows you to specify what columns (far left = 1)
  1254.  you want read by all commands that read the screen (READ, SEARCH, WAITFOR,
  1255.  WAITSCR and LOCATE).  Specify the starting and ending columns inclusively.
  1256.  
  1257.  By combining WINCOLS with WINROWS, you can restrict reads to a selected
  1258.  box within the screen.  This is referred to as the active window.  Use
  1259.  WINMAX to return the active window to the full screen.
  1260.  
  1261.  See TIMEOUT and SHOWIN for examples.
  1262.  
  1263.  
  1264. 4.1.37 WINMAX
  1265.  
  1266.  If you have restricted the active window with WINCOLS and/or WINROWS, you
  1267.  can return the active window to the full screen area by issuing a WINMAX
  1268.  command.  The size of the new active window will be determined by the
  1269.  currently displayed columns and rows, but never exceeding the values
  1270.  specified in SCRMAX.
  1271.  
  1272.  See TIMEOUT for example.
  1273.  
  1274.  
  1275. 4.1.38 WINROWS start end
  1276.  
  1277.  Sometimes you may want to restrict your screen searches to a certain area
  1278.  of the screen.  WINROWS allows you to specify what rows (top = 1) you want
  1279.  read by all commands that read the screen (READ, SEARCH, WAITFOR, WAITSCR
  1280.  and LOCATE).  Specify the starting and ending rows inclusively.
  1281.  
  1282.  By combining WINCOLS with WINROWS, you can restrict reads to a selected
  1283.  box within the screen.  This is referred to as the active window.  Use
  1284.  WINMAX to return the active window to the full screen.
  1285.  
  1286.  See TIMEOUT and SHOWIN for examples.
  1287.  
  1288.  
  1289. 4.2 Labels
  1290.  
  1291.  Labels can be up to 15 characters long and may contain letters, numbers,
  1292.  special characters or spaces.  They are treated as upper case regardless of
  1293.  how they are coded.  Duplicate labels are not allowed in the same script.
  1294.  END, end and End would all be considered duplicate labels.  If duplicate
  1295.  labels exist, all branches to the duplicate labels will go to the first
  1296.  one in the script.
  1297.  
  1298.  Labels must be immediately preceded by a colon (:) and placed on a line
  1299.  which does not contain any commands.
  1300.  
  1301.  labels are used as destinations for branching commands (TIMEOUT, GOTO, ON,
  1302.  IFY and IFN).
  1303.  
  1304.  It doesn't hurt a thing if you want to use labels for comments, but the
  1305.  semicolon (;) remark is a better approach since there is no length
  1306.  limitation on remarks and they will not be confused with labels that are
  1307.  actual destinations.
  1308.  
  1309.  See TIMEOUT and ON for examples.
  1310.  
  1311.  
  1312. 4.3 Remarks
  1313.  
  1314.  Anything on a line for which the first non-blank character is a semicolon
  1315.  (;) is treated as a comment line and is ignored by the script processor.
  1316.  
  1317.  
  1318. 4.4 Using variables
  1319.  
  1320.  You may not specify variables in data included with the TYPFILE command.
  1321.  Any variables found in the file data will not be interpreted as variables
  1322.  by EXC.
  1323.  
  1324. 4.5 Environment variable substitution
  1325.  
  1326.  You may use environment strings (initialized with the DOS SET command) in
  1327.  any command parameter by typing %VAR% where you want the environment string
  1328.  labeled VAR to be substituted.  Here are some examples:
  1329.  
  1330.  Given these environment variables:
  1331.   SET ATTR=15
  1332.   SET ME=Gary
  1333.   SET LAST=Crider
  1334.   SET FULL="Gary Crider"
  1335.   SET FULL2=Gary Crider
  1336.  
  1337.   SHOW %ATTR% "I am %ME%"  would equate to  SHOW 15 "I am Gary"
  1338.   TYPE "%ME% %LAST%"       would equate to  TYPE "Gary Crider" 
  1339.   TYPE %FULL%              would equate to  TYPE "Gary Crider"
  1340.   TYPE "%FULL2%"           would equate to  TYPE "Gary Crider"
  1341.   DELAY %ATTR%             would equate to  DELAY 15
  1342.   SHOW %ATTR% "%FULL%"     would equate to  SHOW 15 "\qGary Crider\q"
  1343.   TYPE "%LAST%, %ME%"      would equate to  TYPE "Crider, Gary"
  1344.  
  1345.  The substitution is made before EXC begins to evaluate the parameters.
  1346.  
  1347.  This could be handy on networks where the values keyed or searched might 
  1348.  vary with the user's network ID, which could be stored in an environment
  1349.  variable.  Many other uses also come to mind.
  1350.  
  1351.  If you want to use a set a variables that are only used in the script and
  1352.  are not normally maintained in the environment, set up a batch file to
  1353.  set the variables, execute the script, and then delete the variables after
  1354.  the script has executed.  This frees up the environment space so that it
  1355.  can be reused.  An example of such a batch file would be:
  1356.  
  1357.  SET X1=abc
  1358.  SET X2=5
  1359.  SET X3=Gary Crider
  1360.  EXC MYSCRIPT 123
  1361.  SET X1=
  1362.  SET X2=
  1363.  SET X3=
  1364.  
  1365.  If you get a message from DOS that says "Out of environment space", you
  1366.  can increase the size of the environment region by placing the following 
  1367.  line in your CONFIG.SYS file and rebooting:
  1368.  
  1369.    SHELL=C:\COMMAND.COM /p /e:nnnn
  1370.  
  1371.  Replace nnnn with the number of bytes (160-32768) that you want used by the 
  1372.  environment region.  The default is 256.  The number should be divisible by
  1373.  16.  1024 is usually pretty good.  Note that each byte you increase the 
  1374.  region by will decrease the amount of free conventional memory used to
  1375.  run programs.  Each variable name, the equal sign, and the variable value
  1376.  are stored in your environment.  To see what is currently stored in your
  1377.  environment, type the word SET at the DOS prompt.  Your full PATH= state-
  1378.  ment is also stored there.
  1379.  
  1380.  If you use 4DOS, NDOS or another different command interpreter, or locate
  1381.  it in another directory, adjust the SHELL= statement accordingly.
  1382.  
  1383.  
  1384. 4.6 User Variables
  1385.  
  1386.  EXC reserves 16 variables whaich can be set to string values of up to 120
  1387.  characters each.  The variable values may contain leading, trailing or
  1388.  embedded spaces.  The variables are numbered 1 to 16.
  1389.  
  1390.  The variables are initialized or cleared with the SET command.
  1391.  
  1392.  You can then reference any variable in any command parameter or string by
  1393.  enclosing the variable number in @s.  For instance to substitute a variable
  1394.  destination label in a GOTO statement, when the destination label name is
  1395.  stored in varible 4, type GOTO @4@.  If variable 4 contained the value
  1396.  "SUB1", the above notation would be equivalent to typing GOTO SUB1.  You can
  1397.  also use the variable substitution within strings such as:
  1398.  
  1399.    TYPE "Good morning, @1@"
  1400.  
  1401.  A very beneficial side effect of allowing variables is that it now allows
  1402.  you to perform multiple executions of a subroutine, returning each time
  1403.  to a different area of the script.  Here is an example from TESTEXC.SCR:
  1404.  
  1405.  
  1406.   SHOW 12 "TESTING 3 subroutine executions.          "
  1407.   SET 2 1
  1408.   SET 1 DO2
  1409.   GOTO SUB1
  1410.  
  1411. :DO2
  1412.   SET 2 2
  1413.   SET 1 DO3
  1414.   GOTO SUB1
  1415.  
  1416. :DO3
  1417.   SET 2 3
  1418.   SET 1 EXIT
  1419.   GOTO SUB1
  1420.  
  1421. :EXIT
  1422.   SHOW 12 "Done, exiting Microsoft Editor            "
  1423.   DELAY 1
  1424.   KEY <ALT+F>
  1425.   WAITFOR "Exit"
  1426.   TYPE "x"
  1427.   WAITFOR "Save it now?"
  1428.   TYPE "n"
  1429.   QUIT
  1430.  
  1431. :SUB1
  1432.   TYPE "Subroutine execution number @2@."
  1433.   KEY <ENTER>
  1434.   GOTO @1@
  1435.  
  1436.  
  1437. 4.7 Example Script
  1438.  
  1439.  The following example demonstrates the use of most of the more commonly used
  1440.  commands.  Please note that the  QUIT statement after the End label is not
  1441.  needed since the same action takes place when there are no more commands to
  1442.  execute.
  1443.  
  1444.  Also please note that the SEARCH and IFN statements after the Loop label
  1445.  could more easily be accomplished with a WAITFOR command.  This just
  1446.  demonstrates that looping logic is supported in scripts.
  1447.  
  1448.    SETWAIT 30
  1449.    TIMEOUT End
  1450.    CASE OFF
  1451.    WAITFOR "Entries"
  1452.    CASE ON
  1453.    TYPE "FO"
  1454.    WAITFOR "OPEN CATALOG"
  1455.    TYPE "E:\NOVLIB\"
  1456.    KEY <TAB>
  1457.    KEY <ESC>
  1458.    TYPE "NOVLIB.L11"
  1459.    KEY <CTL+ENTER>
  1460.    WAITSCR
  1461.  
  1462.  :Loop
  1463.    SEARCH "NOVLIB.L11"
  1464.    IFN Loop
  1465.  
  1466.    TYPE "SLADDNAEA"
  1467.    KEY <CTL+ENTER>
  1468.    DELAY 2;
  1469.    WAITFOR NOT "Sorting Index"
  1470.    TYPE "FS"
  1471.    KEY <CTL+ENTER>
  1472.    DELAY 2
  1473.    WAITFOR NOT "Please wait."
  1474.  
  1475.  :End   
  1476.    BEEP
  1477.    KEY <ALT+X>
  1478.    QUIT
  1479.  
  1480.  
  1481.  For a more comprehensive example, see the script file, TESTEXC.SCR.  Please
  1482.  read the comments before and after that script.
  1483.  
  1484.  
  1485.  
  1486. APPENDIX A
  1487.  
  1488. Installation
  1489.  
  1490.     EXC is distributed in a self-extracting ZIP file called EXC3.EXE or a ZIP 
  1491. file called EXC.ZIP.  It contains the following files:
  1492.  
  1493.         EXC.EXE         The executable file for EXC.
  1494.         EXC.DOC         The documentation file.
  1495.         HELP.TXT        Script command quick reference.  It is formatted as
  1496.                         script file comments so that it can be included in
  1497.                         you script for quick referencing.z
  1498.         TESTEXC.SCR     Example script used to test EXC functionality.
  1499.         TESTEXC.TXT     Text file for testing TYPFILE with TESTEXC.SCR.
  1500.         TESTEXC.BAT     Batch file for executing TESTEXC.SCR.
  1501.         TESTOS2.BAT     Batch file for executing TESTEXC.SCR in an OS/2 DOS
  1502.                         window.
  1503.         EXC.HST         Text description of past updates.
  1504.         EXC.Vnn         Text description of latest updates in version nn.
  1505.         PRODUCTS.DOC    Description of other Parity Solutions products.
  1506.  
  1507.     For best results, extract the file into a directory on your PATH.  If you
  1508. don't use a directory in your path, you will have to designate the directory
  1509. containing EXC.EXE when executing the program.
  1510.  
  1511.     If you have a utility directory that is on your PATH, this is an excellent
  1512. location for EXC.  An example installation would be:
  1513.  
  1514.     C:
  1515.     CD \UNTIL
  1516.     COPY [path]EXC3.EXE
  1517.     EXC3
  1518.     DEL EXC3.EXE
  1519.  
  1520.     If they are not currently in your path, simply copy all of the files to a 
  1521. directory in your path.  Keep the EXC3.EXE file anywhere you like, but give 
  1522. plenty of copies, as is, to your friends.  If you register EXC, you are not 
  1523. licensed to give your serial number to anybody without first removing the 
  1524. serialization from your copy.
  1525.  
  1526.  
  1527.  
  1528.  
  1529. APPENDIX B
  1530.  
  1531.  
  1532. Keycode Table
  1533.  
  1534. Although you do not need to know these codes to write EXC scripts, the
  1535. following table does show you which combinations are defined and available
  1536. by using the appropriate mnemonics.  Do not try to use combinations which
  1537. indicate N/A in the table, unless they are follwed by an asterisk (*).
  1538.  
  1539.     Key             Norm        Shift       Ctrl        Alt
  1540.     ----            ----        -----       ----        ---
  1541.     A               1E61        1E41        1E01        1E00
  1542.     B               3062        3042        3002        3000
  1543.     C               2E63        2E42        2E03        2E00
  1544.     D               2064        2044        2004        2000
  1545.     E               1265        1245        1205        1200
  1546.     F               2166        2146        2106        2100
  1547.     G               2267        2247        2207        2200
  1548.     H               2368        2348        2308        2300
  1549.     I               1769        1749        1709        1700
  1550.     J               246A        244A        240A        2400
  1551.     K               256B        254B        250B        2500
  1552.     L               266C        264C        260C        2600
  1553.     M               326D        324D        320D        3200
  1554.     N               316E        314E        310E        3100
  1555.     O               186F        184F        180F        1800
  1556.     P               1970        1950        1910        1900
  1557.     Q               1071        1051        1011        1000
  1558.     R               1372        1352        1312        1300
  1559.     S               1F73        1F53        1F13        1F00
  1560.     T               1474        1454        1414        1400
  1561.     U               1675        1655        1615        1600
  1562.     V               2F76        2F56        2F16        2F00
  1563.     W               1177        1157        1117        1100
  1564.     X               2D78        2D58        2D18        2D00
  1565.     Y               1579        1559        1519        1500
  1566.     Z               2C7A        2C5A        2C1A        2C00
  1567.     1               0231        0221        N/A *       7800
  1568.     2               0332        0340        0300        7900
  1569.     3               0433        0423        N/A *       7A00
  1570.     4               0534        0524        N/A *       7B00
  1571.     5               0635        0625        N/A *       7C00
  1572.     6               0736        075E        071E        7D00
  1573.     7               0837        0826        N/A *       7E00
  1574.     8               0938        092A        N/A *       7F00
  1575.     9               0A39        0A28        N/A *       8000
  1576.     0               0B30        0B29        N/A *       8100
  1577.     ,               332C        333C        N/A *       3300
  1578.     .               342E        343E        N/A *       3400
  1579.     /               352F        353F        N/A *       3500
  1580.     ;               273B        273A        N/A *       2700
  1581.     '               2827        2822        N/A *       2800
  1582.     [               1A5B        1A7B        1A1B        1A00
  1583.     ]               1B5D        1B7D        1B1D        1B00
  1584.     `               2960        297E        N/A *       2900
  1585.     -               0C2D        0C5F        0C1F        8200
  1586.     =               0D3D        0D2B        N/A *       8300
  1587.     \               2B5C        2B7C        2B1C        2B00
  1588.     F1              3B00        5400        5E00        6800
  1589.     F2              3C00        5500        5F00        6900
  1590.     F3              3D00        5600        6000        6A00
  1591.     F4              3E00        5700        6100        6B00
  1592.     F5              3F00        5800        6200        6C00
  1593.     F6              4000        5900        6300        6D00
  1594.     F7              4100        5A00        6400        6E00
  1595.     F8              4200        5B00        6500        6F00
  1596.     F9              4300        5C00        6600        7000
  1597.     F10             4400        5D00        6700        7100
  1598.     Enter           1C0D        1C0D*       1C0A        1C00
  1599.     Ins             5200        5230        9200        A200
  1600.     Del             5300        532E        9300        A300
  1601.     Esc             011B        011B*       011B*       0100
  1602.     Home            4700        4737        7700        9700
  1603.     End             4F00        4F31        7500        9F00
  1604.     PgUp            4900        4939        8400        9900
  1605.     PgDn            5100        5133        7600        A100
  1606.     <Tab>           0F09        0F00        9400        A500
  1607.     <BackSpace>     0E08        0E08        0E7F        0E00
  1608.     <LeftArrow>     4B00        4B34        7300        9B00
  1609.     <RightArrow>    4D00        4D36        7400        9D00
  1610.     <UpArrow>       4800        4838        8D00        9800
  1611.     <DownArrow>     5000        5032        9100        A000
  1612.     <Gray 5>        4C00        4C35        8F00        N/A
  1613.     <Gray *>        372A        372A        7200        3700
  1614.     <Gray ->        4A2D        4A2D        8E00        4A00
  1615.     <Gray +>        4E2B        4E2B        9000        4E00
  1616.     <Space>         3920        3920*       3920*       3920*
  1617.     <F11>           8500        8700        8900        8B00
  1618.     <F12>           8600        8800        8A00        8C00
  1619.  
  1620. *These combinations, while not discreet key codes, are specially handled
  1621.  by EXC to operate properly in most instances.
  1622.  
  1623.  In addition, the <PRTSC> (print screen) mnemonic can be used in EXC to
  1624. cause a screen print.  The <PRTSC> cannot be placed in the keyboard buffer
  1625. since it does not have a key code.  KEY <PRTSC> is executed immediately.
  1626.  
  1627.  
  1628.  
  1629. APPENDIX C
  1630.  
  1631.  
  1632. EXCDEMO - A demonstration version of EXC that you can distribute to 
  1633.           demonstrate your software.
  1634.  
  1635. If you are a software author or distributor and wish to distribute an auto-
  1636. mated demonstration of your software using EXC, you would have to also
  1637. distribute EXC.  Since it is only legal to distribute EXC in its shareware
  1638. form, with no serialization, the EXC registration reminder would appear
  1639. with your demonstration.
  1640.  
  1641. EXCDEMO is a revision of the current version of EXC which can be freely 
  1642. distributed with your demo with no royalty fees.  It uses a specially 
  1643. encrypted script file which you create and test with EXC.  You then encrypt 
  1644. it with EXCENCR.EXE and distribute the encrypted script with EXCDEMO.EXE and 
  1645. your program, plus a batch file to execute your demo.  There is also a small 
  1646. text file which must be included on your diskette giving copyright and promo-
  1647. tional information about EXC and EXCDEMO.
  1648.  
  1649. EXCDEMO executes with only a single copyright statement display at end-of-job 
  1650. unless an error is encountered.
  1651.  
  1652. EXCDEMO is not distributed with EXC and must be purchased seperately for  
  1653. $100.  You then can distribute it as much as you like.  See the order form
  1654. to order EXCDEMO.
  1655.  
  1656.  
  1657.  
  1658. APPENDIX D
  1659.  
  1660.  
  1661. Definition of Shareware
  1662. by Paul Mayer, author of GRAB Plus
  1663.  
  1664. Shareware distribution gives users a chance to try software before buying
  1665. it. If you try a shareware program and continue using it, you are expected
  1666. to register. Individual programs differ on details -- some request regis-
  1667. tration while others require it, some specify a maximum trial period. With
  1668. registration, you get anything from the simple right to continue using the
  1669. software to an updated program with printed manual.
  1670.  
  1671. Copyright laws apply to both shareware and commercial software, and the
  1672. copyright holder retains all rights, with a few specific exceptions as
  1673. stated below. Shareware authors are accomplished programmers, just like
  1674. commercial authors, and the programs are of comparable quality. (In both
  1675. cases, there are good programs and bad ones!) The main difference is in
  1676. the method of distribution. The author specifically grants the right to
  1677. copy and distribute the software, either to all and sundry or to a
  1678. specific group. For example, some authors require written permission
  1679. before a commercial disk vendor may copy their shareware.
  1680.  
  1681. Shareware is a distribution method, not a type of software. You should find
  1682. software that suits your needs and pocketbook, whether it's commercial or
  1683. shareware. The Shareware system makes fitting your needs easier, because
  1684. you can try before you buy.  And because the overhead is low, prices are
  1685. low also. Shareware has the ultimate money-back guarantee -- if you don't
  1686. use the product, you don't pay for it.
  1687.  
  1688. EXC.EXE is a shareware program and is provided at no charge to the user for
  1689. a 30-day period of evaluation.  Feel free to share it with your friends,
  1690. but please do not give it away altered or as part of another system.  The
  1691. essence of "user-supported" software is to provide personal computer users
  1692. with quality software without high prices, and yet to provide incentive for
  1693. programmers to continue to develop new products.
  1694.  
  1695.  
  1696.  
  1697. APPENDIX E
  1698.  
  1699.  
  1700. Disclaimer
  1701.  
  1702. BECAUSE OF THE DIVERSE NATURE OF COMPUTER EQUIPMENT AND EXPERTISE OF USERS,
  1703. PARITY SOLUTIONS AND GARY C. CRIDER MAKE NO WARRANTY ON THE EXC PROGRAM
  1704. WHATSOEVER, EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THE WARRANTIES
  1705. OF MERCHANTABILITY AND OF FITNESS FOR ANY PURPOSE.  THE USER ASSUMES ALL RISK
  1706. OF DAMAGE TO DATA OR EQUIPMENT RESULTING DIRECTLY OR INDIRECTLY FROM THE USE
  1707. OR MISUSE OF THIS PROGRAM PRODUCT.
  1708.  
  1709. USERS ARE ADVISED TO TEST PROGRAMS AND SCRIPTS THOROUGHLY ON DATA FOR WHICH A
  1710. BACKUP EXISTS.  ANY LIABILITY OF THE AUTHOR OR PARITY SOLUTIONS IS LIMITED TO
  1711. REPLACEMENT OR REFUND OF THE REGISTRATION FEE.
  1712.  
  1713.  
  1714.  
  1715.  
  1716. APPENDIX F
  1717.  
  1718.  
  1719. Support
  1720.  
  1721.     I have tried to test the program to the fullest, but I am limited as to
  1722. systems and configurations with which to test.  I have been programming for 19
  1723. years and the one thing I know for sure is that bug free programs are very few
  1724. and far between.  I can only promise to support the program to the best of my
  1725. ability and provide fixes as expeditiously as possible.
  1726.  
  1727.     Anyone can report problems and suggest changes.  Registered users get top
  1728. priority in resolving their problems.  There are three ways you can report
  1729. problems.  The preferred method is to contact me through CIS mail (not forum
  1730. messages).  My CIS ID is 71760,3413.  This is the method that is most likely
  1731. to be most successful if you are in a hurry as I usually check my mail more 
  1732. than once per day.
  1733.  
  1734.    You can also write me at:
  1735.  
  1736.    Gary C. Crider
  1737.    Parity Solutions
  1738.    1903 Pavia Ct.
  1739.    Arlington, TX 76006
  1740.  
  1741.     The last method is to phone (817) 261-9552.  Since I am the sole technical
  1742. support and the line is also used for my network consulting business, it is
  1743. often hard to get through to me.  Please call and leave a message between 7:30
  1744. am and 6:30 pm Central time, or you may actually talk to me after 6:30 pm.  
  1745. Please don't call after 10:00 pm Central time.
  1746.  
  1747.     No matter which method you use, please give a brief description of your
  1748. problem, your registration serial number if you are registered, and your phone
  1749. number.  If I need more information, I will contact you as soon as I can.
  1750. When I have a solution, I will contact you however you prefer.  Never post
  1751. your serial number on forum messages.  CIS mail is OK.  I seldom read forum
  1752. messages and, in most cases, they are not private.
  1753.  
  1754.     At this time there is no charge for support or upgrades and no time 
  1755. limit for these.  Parity Solutions does reserve the right, however, to
  1756. imposes time limitations for free support and upgrades in the future, if it
  1757. becomes necessary.  The time limit on free support will never be less than
  1758. six months.
  1759.  
  1760.     Registered users who are dissatisfied with EXC may request a refund if
  1761. your problem cannot be resolved and is within the scope of the purpose for
  1762. which EXC was designed.  You may request the refund up to 60 days after 
  1763. registration.  If Parity Solutions chooses not to address problems specific 
  1764. to a particular hardware or software environment, you are entitled to a 
  1765. refund of the registration amount.  Refunds do not include any applicable
  1766. shipping charges or charges for diskettes, unless the diskette is defective.
  1767.  
  1768.     I work full time, have a consulting business to run in my spare time and
  1769. write programs instead of sleeping.  So please be a little patient with me.
  1770.  
  1771.     Program updates are available on CompuServe or can be requested from us 
  1772. for a $5 shipping and handling charge.  Add $1 for international shipping 
  1773. outside the North American continent.  A distribution disk of all Parity 
  1774. Solutions products will be sent to you.  Specify disk size and format.  You
  1775. may use the order form at the end of this document.
  1776.  
  1777.                  
  1778. APPENDIX G
  1779.  
  1780.  
  1781. Registration
  1782.  
  1783.  
  1784.     EXC's full capabilities are available for you to evaluate before you 
  1785. invest your hard-earned money.  The only difference in operation of a 
  1786. registered vs. a non-registered program is that the registration prompt will 
  1787. no longer appear once the program is serialized.  You are also entitled to 
  1788. support, both while you are evaluating and after you register the program.  
  1789. See the previous section on support policies.
  1790.  
  1791.     You are licensed to use this program freely for thirty (30) days. At the
  1792. end of 30 days you are expected to either register the program or quit using
  1793. it.  It is a violation of your trial period license to use EXC longer than
  1794. 30 days without registering it.
  1795.  
  1796.     Registered users will receive a unique serial number and instructions on
  1797. how to serialize the program.  Serialization can be re-applied to updated
  1798. versions and in no way hinders your use of the program.  You can compress or
  1799. decompress the program with no effect (LZEXE or PKLITE).  I use Fabrice
  1800. Bellard's LZEXE program on EXC.EXE before distribution.
  1801.  
  1802.     As a registered user, you will be able to upgrade without re-registration
  1803. or additional fees.  You will also be kept on my PRIVATE mailing list to
  1804. receive additional information on this and other Parity Solutions products.  
  1805.  
  1806.     To register your copy, please use the order form below and send $24 US 
  1807. ($95 per file server on LANS) check or money order (sorry, no credit cards 
  1808. yet) to:
  1809.  
  1810.    Gary C. Crider
  1811.    Parity Solutions
  1812.    1903 Pavia Ct.
  1813.    Arlington, TX 76006
  1814.  
  1815.     Or, you can register individual (non-network) licenses online quickly and 
  1816. easily in Compuserve.  Simply GO SWREG and register ID #753.  Your regis-
  1817. tration fee will be added to your Compuserve bill.  International exchange 
  1818. was never easier and you save the $1 international postage charge.
  1819.  
  1820.     Texas residents and companies should register by mail and include 7.25
  1821. percent sales tax on the total amount of the order.
  1822.  
  1823.     If you send your CIS id or register via CIS:SWREG, your registration will 
  1824. be sent to you via CIS mail, along with instructions on how to serialize your 
  1825. copy of EXC.  This usually involves one day or less turnaround.  If you 
  1826. register online and do not receive a serial number within 3 days, please
  1827. contact me via CIS mail.
  1828.     
  1829.     Program diskettes are not normally shipped.  Normal distribution of EXC 
  1830. and upgrades is via CompuServe.  If you need a diskette, please see the 
  1831. instructions under Support above, or use the order form below.  You will 
  1832. receive a serial number and instructions for serializing your copy of the 
  1833. program.
  1834.     
  1835.  
  1836. Single use license:
  1837.  
  1838.     Each license gives you or your company a single use permit for EXC.  It is 
  1839. not restricted to a single machine as long as no two users can be simul-
  1840. taneously using the program.  As Borland says, "treat it like a book."  As an 
  1841. example, if you register EXC for your home computer, but during the day you 
  1842. use a portable or a computer at work,  you may keep EXC on both machines as 
  1843. long as no one is at home using it while you are using it at work, and vice 
  1844. versa.
  1845.  
  1846.  
  1847. LAN license:
  1848.  
  1849.     LAN licenses grant rights to all workstations on the same physical LAN.  
  1850. If internetworking, a license must exist for each file server that contains a
  1851. copy of EXC.EXE or for each physical local area network that will be given 
  1852. rights to access EXC.EXE.  If two or more file servers exist on a single LAN 
  1853. strictly for mirroring data and fault-tolerance, these will be counted as a 
  1854. single file server for licensing purposes.  If in doubt, contact me.  We can 
  1855. work out an agreement.
  1856.  
  1857.  
  1858. Site license:
  1859.  
  1860.     Site and enterprise licensing is also available on a negotiated price 
  1861. basis.  I guarantee it will be an economical alternative to buying licenses 
  1862. for each user.
  1863.  
  1864.     You may freely distribute the original shareware EXC3.EXE file or 
  1865. distribution diskette intact in any way you see fit other than selling it.  
  1866. Users' groups and shareware distribution services may charge a reasonable fee 
  1867. for the medium and duplication costs.  Bulletin boards may not charge 
  1868. additional fees for downloading this specific program, other than normal 
  1869. connect-time and/or membership charges.
  1870.  
  1871.     As long as it meets the above criteria, any BBS may post EXC for down-
  1872. loading, but should try to keep it up to date.  The latest version is on 
  1873. CompuServe, or can be obtained from Parity Solutions.  Parity Solutions will 
  1874. not normally upload upgrades to bulletin boards other than CompuServe.
  1875.  
  1876.     You are NOT licensed to give anyone your serial number unless you first
  1877. remove all serialization from your computer.  You may then no longer use that
  1878. serial number.  Only Parity Solutions has the authority to issue serial
  1879. numbers.  If you give or sell your licensed EXC to anyone else, please have
  1880. them send their name, address and serial number to us so that we may update
  1881. our customer database.
  1882.  
  1883.     Modification of EXC.EXE in any manner other than lossless compression,
  1884. is prohibited and unlawful.
  1885.  
  1886. =============================================================================
  1887.                            ORDER FORM FOR EXC
  1888.  
  1889. Send checks payable to: Parity Solutions                
  1890.                         1903 Pavia Court
  1891.                         Arlington, TX 76006
  1892.  
  1893. BILLING ADDRESS:                        SHIP TO (If different):
  1894.  
  1895. NAME:    _____________________________  NAME:      ___________________________
  1896.       
  1897. COMPANY: _____________________________  COMPANY: _____________________________
  1898.  
  1899. STREET:  _____________________________  STREET:  _____________________________
  1900.  
  1901.          _____________________________           _____________________________ 
  1902.         
  1903. CITY/ST: _____________________________  CITY/ST: _____________________________
  1904.  
  1905. ZIP/POSTAL CODE: _____________________  ZIP/POSTAL CODE: _____________________
  1906.  
  1907. COUNTRY: _____________________________  COUNTRY: _____________________________
  1908.  
  1909. PHONE:   _____________________________  PHONE:   _____________________________
  1910.  
  1911. CompuServe ID: _______________________(Optional)
  1912.  
  1913.    NOTE: Parity Solutions sends a serial number for each registration and 
  1914.          instructions for serializing your program.  A diskette containing
  1915.          the latest releases of all Parity Solutions shareware products is
  1916.          available for $5.00 U.S.  The current release of EXC is available
  1917.          for downloading on CompuServe in the IBMSYS forum.
  1918.  
  1919.    QTY   DESCRIPTION                             PRICE EA.   TOTAL PRICE
  1920.  
  1921.    ___   EXC license and registration              $24.00    ___________
  1922.  
  1923.    ___   EXC Network license and registration       95.00    ___________
  1924.  
  1925.    ___   Parity Solutions shareware diskette         5.00    ___________
  1926.  
  1927.    ___   EXCDEMO demonstration software            100.00    ___________
  1928.  
  1929.          Postage for international orders outside    1.00    ___________
  1930.          the U.S., Canada and Mexico.
  1931.                                          Subtotal:           ___________
  1932.  You may deduct 10% from the sub-        Sales tax (Texas 
  1933.  total if more than one license is       only. - 7.25%)      ___________
  1934.  ordered.                              
  1935.                                          Total Enclosed:     ___________
  1936.  
  1937. Diskette size (if ordered): __ 5.25" 360k  __ 5.25" 1.2M  __ 3.5" 760k
  1938.  
  1939. Thank you for doing business with Parity Solutions.  (817) 261-9552
  1940.  
  1941. Parity Solutions is a partnership of Gary C. Crider and Russell L. McCloud.  
  1942. Federal tax identification number 75-2468376.  
  1943. ==============================================================================
  1944.  
  1945.